package com.jike.jkgame.data;

import java.io.Serializable;

import com.jike.jkgame.R;
import com.jike.jkgame.Utilis;

public class AttackResultData implements Serializable {
	public Player player;
	public int opcode;
	public int result;
	public int exp;
	public int money;
	public int equip;
	public int vigour;

	public String getFormatedString() {
		if (equip > 0) {
			return String.format(Utilis.getResString(R.string.special_reward_fromat), equip, exp, money);
		} else {
			return String.format(Utilis.getResString(R.string.reward_fromat), exp, money);
		}
	}
	
}
